load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest")

oncall("fboss_platform")

cpp_unittest(
    name = "platform_name_lib_test",
    srcs = [
        "PlatformNameLibTest.cpp",
    ],
    deps = [
        "//fb303:service_data",
        "//fboss/platform/helpers:mock_platform_fs_utils",
        "//fboss/platform/helpers:mock_platform_utils",
        "//fboss/platform/helpers:platform_fs_utils",
        "//fboss/platform/helpers:platform_name_lib",
        "//folly/testing:test_util",
    ],
)

cpp_unittest(
    name = "platform_fs_utils_test",
    srcs = [
        "PlatformFsUtilsTest.cpp",
    ],
    deps = [
        "//fboss/platform/helpers:platform_fs_utils",
        "//folly:file_util",
        "//folly/testing:test_util",
    ],
)

cpp_unittest(
    name = "platform_utils_test",
    srcs = [
        "PlatformUtilsTest.cpp",
    ],
    deps = [
        "//fboss/platform/helpers:platform_utils",
    ],
)
